import QtQuick 2.0
import com.company.Page1Class 1.0 //import your c++ class

Page2Form {
    Page1Class {
        id: page1Class  //id

    }

    // action for Get
    buttonGet.onClicked: {
        // get value from c++
        var a = page1Class.getValue();
        label.text = a;
        console.log("get value : " + a);
    }

    // more action for buttonSet
    buttonSet {

        //click
        onClicked: {
            // get value from c++
            var a = textField.text;
            page1Class.setValue(a);
            console.log("set value : " + a);
        }

    }

}

/*##^##
Designer {
    D{i:0;autoSize:true;height:480;width:640}
}
##^##*/
